#include "AnimationInfo.h"

/*-----------------------------------------------------------------------------------------------*/
void AnimationInfo::addFrame(unsigned int x, unsigned int y, unsigned int width, unsigned int height)
{
   Frame frame;
   frame.x = x;
   frame.y = y;
   frame.width = width;
   frame.height = height;

   m_frames.push_back(frame);

   m_timePerFrame = m_length / m_frames.size();
}